<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title><?php echo C('WEB_SITE_TITLE'); if(!empty($meta_title)): ?>——<?php echo ($meta_title); endif; ?></title></title>
<meta name="keywords" content="<?php echo C('WEB_SITE_KEYWORD');?>"/>
<meta name="description" content="<?php echo C('WEB_SITE_DESCRIPTION');?>"/>

<link rel="stylesheet" type="text/css" href="/Public/Home/css/common.css"/>
<link rel="stylesheet" type="text/css" href="/Public/Home/css/index.css"/>
<link rel="stylesheet" type="text/css" href="/Public/Home/static/swiper/swiper.min.css" />
<script src="/Public/Home/static/swiper/swiper.min.js"></script>
<script src="/Public/Home/static/jquery.2.1.1.min.js"></script>
<script src="/Public/Home/js/common.js"></script>

    <link rel="stylesheet" type="text/css" href="/Public/Home/css/about.css"/>




</head>
<body class="index-page">
	<!-- 头部 -->
	
<div class="top">
    <div class="wrap">
        <div class="welcome">你好，欢迎您来到政信联众互联网信息服务有限公司！</div>
        <div class="favorite">
            <a href="javascript:void(0);" onclick="AddFavorite('我的网站',location.href)" >加入收藏</a> |
            <a href="javascript:void(0);" onclick="SetHome(this,location.href);">设为首页</a>
        </div>
    </div>
</div>
<!--logo+搜索-->
<div class="header">
    <div class="wrap">
        <div class="logo">
            <a href="http://new.zhengxin.com/"><img src="/Public/Home/images/logo.png"/></a>
        </div>
        <div class="search">
            <form method="post" action="<?php echo U('Keyword/index');?>" onsubmit="return detection()">
                <input class="text" type="text" name="keyword" placeholder="请输入搜索关键字"/>
                <input type="submit" class="btn" value="">
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    function Trim(str)
    {
        return str.replace(/(^\s*)|(\s*$)/g, "");
    }
    function detection(){
        var keyword=$("input[name='keyword']").val();
        if(Trim(keyword)==""){
               alert("请输入关键字");
            return false;
        }
    }
   $(function(){
       $(window).scroll(function(){
           $(".top").css("display","none");
            $(".header").addClass("headeer");
           $(".navigation").addClass("navigationn");

           var top = $(this).scrollTop();
           if (top==0){
               $(".top").css("display","block");
               $(".header").removeClass("headeer");
               $(".navigation").removeClass("navigationn");
           }

           if(top>646){
               $(".sc").css("display","block");
           }
       })
   })
</script>
<!--菜单-->
<div class="navigation">
    <div class="wrap">
        <ul>
            <?php $__NAV__ = M('Channel')->field(true)->where("status=1")->order("sort")->select(); if(is_array($__NAV__)): $i = 0; $__LIST__ = $__NAV__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i; if(($nav["pid"]) == "0"): ?><li >
                        <a <?php if(strstr($nav['url'],CONTROLLER_NAME)){ echo "style='background-color: #D64A4A;'"; } ?>   href="<?php echo (get_nav_url($nav["url"])); ?>" target="<?php if(($nav["target"]) == "1"): ?>_blank<?php else: ?>_self<?php endif; ?>">
                            <?php echo ($nav["title"]); ?>
                        </a>
                    </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>

    <div class="banner" style="background-image: url('/Public/Home/images/ny-001.jpg') ">

    </div>















<!--<?php $__NAV__ = M('Channel')->field(true)->where("status=1")->order("sort")->select(); if(is_array($__NAV__)): $i = 0; $__LIST__ = $__NAV__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i; if(($nav["pid"]) == "0"): ?><li>
            <a href="<?php echo (get_nav_url($nav["url"])); ?>" target="<?php if(($nav["target"]) == "1"): ?>_blank<?php else: ?>_self<?php endif; ?>">
                <div class="cn same"><p><?php echo ($nav["title"]); ?></p></div>
                <div class="en same"><?php echo ($nav["english_name"]); ?></div>
            </a>
        </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>-->







	<!-- /头部 -->
	
	<!-- 主体 -->
	
    <div class="body" id="body">
        <div class="wrap">
            <!--面包屑-->
            <div class="box-crumbs">
                <div class="crumbs">
                    您的位置 :
                    <a href="/">首页</a> &gt;&gt;
                    <a href="<?php echo U('Service/index');?>">服务项目</a> &gt;&gt;
                    <a href="<?php echo U('',array('id'=>$data['id']));?>" class="on"><?php echo ($data["title"]); ?></a>
                </div>

                <b>服务项目</b>
                <span class="en">Service items</span>
            </div>
        </div>
        <div class="wrap">
            <div class="lef_menu">
                <ul>
                    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li class="lll">
                            <a onclick="c_menu(this);" <?php if($data['id'] == $val['id'] or $data['pid'] == $val['id']): ?>class="aaaa on"<?php else: ?>class="aaaa"<?php endif; ?> <?php if(empty($val['son'])): ?>href="<?php echo U('index',array('id'=>$val['id']));?>#body"<?php else: ?>href="<?php echo U('index',array('id'=>$val['son'][0]['id']));?>#body"<?php endif; ?>><?php echo ($val["title"]); ?>
                            </a>
                            <ul class="son_ul" style="display: none;">
                                <?php if(is_array($val['son'])): $i = 0; $__LIST__ = $val['son'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val_son): $mod = ($i % 2 );++$i;?><li class="son"><a <?php if($data['id'] == $val_son['id']): ?>style='background-color:#d64a4a;text-decoration:underline;color:#ccc;'<?php endif; ?> href="<?php echo U('index',array('id'=>$val_son['id']));?>#body"><?php echo ($val_son["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                            </ul>
                        </li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
            <div class="page_content">
                <div class="pictures">
                     <ul>
                         <?php if(is_array($img_list['list'])): $i = 0; $__LIST__ = $img_list['list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li>
                                 <a href="<?php echo U('detail',array('id'=>$val['id']));?>#body"><img src="<?php echo (get_cover($val["cover_id"],'path')); ?>"/></a>
                                 <a class="pictures_title" href="<?php echo U('detail',array('id'=>$val['id']));?>#body"><?php echo ($val["title"]); ?></a>
                             </li><?php endforeach; endif; else: echo "" ;endif; ?>
                         <div style="clear: both;"></div>
                     </ul>
                </div>
                <input type="hidden" name="p" value="<?php echo ($img_list['p']); ?>"/>
                <div class="page" style="text-align: right;margin-bottom: 20px;">
                    <a href="javascript:void(0);" onclick="page_(-1);">&lt;&lt;上一页</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="javascript:void(0);" onclick="page_(+1);">下一页&gt;&gt;</a>
                </div>
            </div>
        </div>
    </div>

	<!-- /主体 -->

	<!-- 底部 -->
	<div class="footer">
    <div class="info wrap">
        <div class="logo">
            <a href="#"><img src="<?php echo (get_cover($config_set_info["logo"],'path')); ?>" alt=""></a>
        </div>
        <div class="text">
            公司：<?php echo ($config_set_info["company"]); ?><br/>
            电话：<?php echo ($config_set_info["tel"]); ?><br/>
            地址：<?php echo ($config_set_info["address"]); ?>
        </div>
        <div class="qrcode">
            <img src="<?php echo (get_cover($config_set_info["qr_code"],'path')); ?>" alt="">
        </div>
    </div>
    <div class="friends">
        <div class="wrap">
            友情链接：<?php if(is_array($friend_data)): $i = 0; $__LIST__ = $friend_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><a href="<?php echo ($val["links"]); ?>"><?php echo ($val["title"]); ?></a>&nbsp&nbsp<?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
    <div class="extend wrap">

        © 2000-2016  四川政信联众互联网信息服务有限公司 版权所有 蜀ICP备16003766号    技术支持：<a href="http://www.cdsok.com.cn">索客（ISONIC）科技</a>
    </div>
</div>

    <script>
        function page_(i){
            var p=$("input[name='p']").val();
            p=parseInt(p)+parseInt(i);
            var id="<?php echo ($data["id"]); ?>";
            $.get("<?php echo U('page');?>",{p:p,id:id},function(data){
                    if(data){
                        var str="";
                        $.each(data.list,function(k,v){
                            str+='<li><a href="/index.php?s=/Home/Service/detail/id/'+ v.id+'.html#body"><img src="'+ v.img+'"/></a>'+
                                    '<a class="pictures_title" href="/index.php?s=/Home/Service/detail/id/'+ v.id+'.html#body">'+ v.title+'</a></li>';
                        });
                        str+='<div style="clear: both;"></div>';
                        $(".pictures ul").html(str);
                        $("input[name='p']").val(data.p);
                    }
            });
        }
$(function(){
        $(".aaaa").each(function(k,v){
                var len =$(v).next("ul").find("li").length;
                  if(len>0){
                    $(v).attr("href","javascript:void(0)");
                  }
              
                
            });
    });



        function c_menu(v){       
                    $(v).next("ul").slideToggle("slow");  
            }
    </script>

	<!-- /底部 -->
</body>
</html>